GridWithWeights.cost

Gets the weighting for an item

struct GridWithWeights(T, U = ubyte, V = typeof(T.x))
U
cost
(
T a
,
T b
,
U default_ = 1
)

Parameters

a
Type: T

Previous position

b
Type: T

Current position

default_
Type: U

Default value to return. Default: 1

Meta